package com.dot.dao;

import java.util.List;

import com.dot.util.Page;

public interface BaseDao<T> {
	
	public void  save(T t) throws Exception;
	
	public T getById(Long id) throws Exception;
	
	public void remove(Long id) throws Exception;
	
	public void update(T t) throws Exception;
	
	public List<T> getAll() throws Exception;
	
	public List<T> getByObj(T t) throws Exception;
	
	public Page<T> get(int pageNo, int pageSize, T q) throws Exception;
	

}
